<admintpl file="header"/>
<link href="//cdn.bootcss.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet">
<link href="../../../../../public/simpleboot/bootstrap/css/bootstrap.min.css" rel="stylesheet">

<style>
    .b_box {
        -webkit-border-radius: 5px;
        -moz-border-radius: 5px;
        border-radius: 5px;
        background: #ffffff;
        padding: 10px;
        margin: 10px;
        border: 1px solid #dddddd;
        
    }
</style>
</head>
<body style="background: #f5f5f5;padding-top: 20px">
<div class="container-fluid">
    <div class="row-small">
        <div class="col-xs-12">
            <div class="b_box">
                <div>
                    <form class="well form-search" method="post" action="{:U('Runmenanalysis/order_amount')}">
                      查询时间：
                       <input type="text" class="js-date" name="formget[order_start_time]" value="{$formget.order_start_time|default=''}" style="width: 90px; height:30px;" autocomplete="off">-
                       <input type="text" class="js-date" name="formget[order_end_time]" value="{$formget.order_end_time}" style="width: 90px; height:30px;" autocomplete="off">
                        大客户名称:<select name="shop_id" id="">
                            <option value="0">
                                ==选择大客户==
                            </option>
                            <volist name="user_shop" id="vo">
$                                <if condition="($vo.shop_id eq $shop_id)">
                            <option value="{$vo.shop_id}" selected>
                                    {$vo.shop_name}
                                </option>
                                <else />
                                <option value="{$vo.shop_id}">
                                    {$vo.shop_name}
                                </option>
                                    </if>
                            </volist>
                        </select>
                       &nbsp;
                       用户电话: <input type="text" name="formget[user_mobile]" style="width: 100px;height:34px;" value="{$formget.user_mobile}">&nbsp;<br>
                       跑客姓名：<input type="text" name="formget[dis_name]" style="width: 100px;height:32px;" value="{$formget.dis_name}">&nbsp;
                       跑客电话: <input type="text" name="formget[dis_mobile]" style="width: 100px;height:32px;" value="{$formget.dis_mobile}">&nbsp;
                       跑客团队:
                            <select class="select_2" name="formget[company_id]"  style="width: 90px;" >
                                <option value='1'{$formget[company_id]==1?selected:''}>全部跑客</option>
                                <option value='2'{$formget[company_id]==2?selected:''}>大河跑客 </option>
                                <option value='3'{$formget[company_id]==3?selected:''}>直属跑客</option>
                                <option value='4'{$formget[company_id]==4?selected:''}>社会跑客</option>
                                <option value='5'{$formget[company_id]==5?selected:''}>校园跑客</option>
                            </select>
                       &nbsp;&nbsp;&nbsp;&nbsp;
                       <input type="submit" class="btn btn-primary" value="搜索" />
                     </form>
                </div>
                <div id="mains" style="height:400px;background: #ffffff;"></div>
            </div>
        </div>
    </div>
</div>



<script src="__PUBLIC__/js/common.js"></script>
<script src="__PUBLIC__/js/echart/echarts-all.js"></script>
<script type="text/javascript">

    // 基于准备好的dom，初始化echarts图表
    var myCharts = echarts.init(document.getElementById('mains'));
    //var myChartd = echarts.init(document.getElementById('tree'));
  
    var order = {
         title: {
       text: "日单量显示",
       x: "center"
   },
   tooltip: {
       trigger: "item",
       formatter: "{a} <br/>{b} : {c}"
   },
   legend: {
       x: 'left',
       data: ["订单总量", "订单总金额"]
   },
   xAxis: [
       {
           type: "category",
           name: "x",
           splitLine: {show: false},
           data: ["1:00", "2:00", "3:00", "4:00", "5:00","6:00","7:00","8:00","9:00","10:00","11:00","12:00","13:00","14:00","15:00","16:00","17:00","18:00","19:00","20:00","21:00","22:00","23:00","24:00"]
       }
   ],
   yAxis: [
       {
           type: "value",
           name: "y"
       }
   ],
    toolbox: {
       show: true,
       feature: {
           mark: {
               show: true
           },
           dataView: {
               show: true,
               readOnly: true
           },
           restore: {
               show: true
           },
           saveAsImage: {
               show: true
           }
       }
   },
   calculable: true,
   series: [
       {
           name: "订单总量",
           type: "line",
           data: {$result_order}

       },
       {
           name: "订单总金额",
           type: "line",
           data: {$result_money}

       }
   ]
    };
    // 为echarts对象加载数据
    myCharts.setOption(order);
</script>
</body>
</html>